﻿#include "CmdThreeDSurfaceCurveNameItemRename.h"

#include "PostCommandPy.h"
#include "BaseModule/IBaseSignal.h"

#include<QDebug>

namespace PostCommand
{
    CmdThreeDSurfaceCurveNameItemRename::CmdThreeDSurfaceCurveNameItemRename()
        : CommandBase()
    {
        this->initCmdName();
    }

    CmdThreeDSurfaceCurveNameItemRename::~CmdThreeDSurfaceCurveNameItemRename()
    {
    }

    bool CmdThreeDSurfaceCurveNameItemRename::execute()
    {
        // bool _success = false;
        emit IBaseSignalInstance->signal_threeDSurfaceCurveNameItemRename(m_windowId, m_itemIndex, m_newName);
        return true;
    }

    void CmdThreeDSurfaceCurveNameItemRename::undo()
    {
    }

    void CmdThreeDSurfaceCurveNameItemRename::redo()
    {
        // execute();
    }

}
